error 25541 failed to open xml file c:\windows\microsoftnet\framework\ v2.0.50727\config\machine.config, system error -2147024786
Can someone help me resolve this error which is encountered while installing office 2010. So far support for my issue has been weak to non responsive!
October 13th, 2010 3:30am

Hi,

The .NET Framework 3.5 can fail to install on a system where MSXML is not properly registered.  There is a custom action that runs during .NET Framework 3.5 setup that tries to use some APIs in MSXML to modify some information in the web_mediumtrust.config file that is a part of the .NET Framework 2.0.  In the cases that we've seen of this issue so far, one of the MSXML CLSID values was somehow unregistered on the system, and that causes this custom action to fail.

You can use one of the following options to work around this issue if you encounter it during .NET Framework 3.5 setup.  Note that these workarounds are only useful for this exact error and HRESULT value.  They will not help fix all possible .NET Framework 3.5 setup failures.

  1. Re-register msxml3.dll by running regsvr32 msxml3.dll
  2. Re-install MSXML3 by downloading and installing the package from http://www.microsoft.com/downloads/details.aspx?familyid=28494391-052b-42ff-9674-f752bdca9582

For more information about details about the root cause of this issue, you can refer to this article:

http://blogs.msdn.com/b/astebner/archive/2007/11/01/5826719.aspx

Hope that helps.

  • Marked as answer by Jennifer Zhan Thursday, October 21, 2010 5:21 AM
Free Windows Admin Tool Kit Click here and download it now
October 14th, 2010 2:40am

yes, so you have told me twice. It did not work! Can I get my money back with interest?
October 29th, 2010 1:33pm

Same problem here!! I am running out of patience after trying to install Office for more than 10 days. Thanx Microsoft & surfspot.nl...!!!

Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2010 3:32pm

I am seeing the same error while trying to install Visual Studio 2010.

Error 25541.Failed to open XML file c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\CONFIG\machine.config, system error: -2147024786

The solution proposed in that blog post mentioned above did not remedy the situation. If anyone figures out how to install Visual Studio 2010 please post here what you needed to do to get around the problem.

 

November 4th, 2010 11:15pm

Well folks, I got the install working. It wasn't elegant because the error messages don't help much. I don't know what the one thing was that did it, but I believe there was something that needed to be uninstalled to correct the problem. I uninstalled everything that had .NET, "Visual Studio", or MSXML in the name. This required rebooting the system which I had previously tried without uninstalling all this stuff. Anyway, the install finally worked. It only took me two days of trying different things and scouring the net for suggestions. Hopefully this info helps someone.
Free Windows Admin Tool Kit Click here and download it now
November 5th, 2010 2:45am

I ran into the same error numerous times installing Office 2010 on Vista where machine.config was not found.  Specifically:

Error 25541. Failed to open XML file
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config, system error: -2147024786
Setup failed. Rolling back

I tried both approaches above and neither worked.

My final solution was simple: there was a file in the directory called machine.config.default.  In a DOS box I copied that file to create machine.config.

The office 2010 install worked fine after that "fix".

Hope it helps.

  • Proposed as answer by Tom Whiteley Wednesday, July 06, 2011 12:10 PM
January 27th, 2011 5:49pm

I ran into the same error numerous times installing Office 2010 on Vista where machine.config was not found.  Specifically:

Error 25541. Failed to open XML file
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config, system error: -2147024786
Setup failed. Rolling back

I tried both approaches above and neither worked.

My final solution was simple: there was a file in the directory called machine.config.default.  In a DOS box I copied that file to create machine.config.

The office 2010 install worked fine after that "fix".

Hope it helps.

Thanks, this solution is simple and correct. It works :-)
  • Proposed as answer by Isidro moran Wednesday, September 05, 2012 2:02 PM
Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2011 10:18am

I ran into the same error numerous times installing Office 2010 on Vista where machine.config was not found.  Specifically:

Error 25541. Failed to open XML file
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config, system error: -2147024786
Setup failed. Rolling back

I tried both approaches above and neither worked.

My final solution was simple: there was a file in the directory called machine.config.default.  In a DOS box I copied that file to create machine.config.

The office 2010 install worked fine after that "fix".

Hope it helps.


It works. Thanks.
July 3rd, 2011 4:01am

My final solution was simple: there was a file in the directory called machine.config.default.  In a DOS box I copied that file to create machine.config.
Lovely little solution. I managed to do it in Windows explorer (after taking a backup of the original) and it works perfectly
  • Proposed as answer by Learner2011 Tuesday, July 26, 2011 7:50 PM
Free Windows Admin Tool Kit Click here and download it now
July 6th, 2011 12:08pm

thanks ! Fantastic !!!

 

July 15th, 2011 1:08am

Hi, I'm having the same issues but don't understand what this step means: "In a DOS box I copied that file to create machine.config."  Can someone please provide step by step instructions? Thanks so much.

Free Windows Admin Tool Kit Click here and download it now
September 4th, 2011 11:25am

It's a little complicated (at least my way is) but I managed to do it like so:

- Go to the C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\ folder, right click the machine.config file and choose Properties.

- Under the Security Tab, click the Advanced Button and from there click the Owner Tab.  

- Choose your user account under the "Change Owner To" section and click Apply.

- Go back to the Security Tab in the previous window and click the Edit button.

- Give yourself full control of the files.

- It may be a good idea to make copies of the machine.config and machine.config.default files if you haven't already.

- Rename the "machine.config" file to "machine.config1" or anything like that.  Then rename "machine.config.default" to just "machine.config"

After doing that, everything installed just fine for me... 

  • Proposed as answer by Hu Sa Saturday, November 23, 2013 11:28 AM
September 20th, 2011 3:53am

thank for providing the complete information here...
Free Windows Admin Tool Kit Click here and download it now
December 5th, 2011 10:32am

Hola woompapa, he seguido los pasos que dices y no me ha solucionado nada. Alguna otra propuesta que alguien haya probado con xito.
March 17th, 2012 7:46pm

How can I copy a file from a DOS box? and can you please explain it more specific regarding the procedures on how to do it. Thank you :D
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2012 5:12pm

I ran into the same error numerous times installing Office 2010 on Vista where machine.config was not found.  Specifically:

Error 25541. Failed to open XML file
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config, system error: -2147024786
Setup failed. Rolling back

I tried both approaches above and neither worked.

My final solution was simple: there was a file in the directory called machine.config.default.  In a DOS box I copied that file to create machine.config.

The office 2010 install worked fine after that "fix".

Hope it helps.

Kudos man.... been banging my head on the keyboard for a week now.... it and it was this easy   BTW I did this for the same error but when trying to installd Visual Studio 2010 Ultimate .....  THANK YOU  :)
  • Edited by Chris_TDA Wednesday, May 23, 2012 5:18 PM
May 23rd, 2012 5:17pm

This worked for me...

"Product: Microsoft .NET Framework 3.5 SP1 -- Error 25541.Failed to open XML file C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web_mediumtrust.config, system error: -2147024786."

 

 Register msxml3.dll in c:\windows\system32 and c:\windows\syswow64

 

regsvr32 C:\windows\system32\msxml3.dll

regsvr32 C:\windows\syswow64\msxml3.dll

Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 6:57pm

Best...solution....ever. Thanx, man!
September 5th, 2012 2:02pm

Hi All,

I tried all this solutions and I have the same error and I tried to install the .net framework and reinstall it again so please advise if any other solutions. 


Free Windows Admin Tool Kit Click here and download it now
May 20th, 2013 3:16pm

Thanks Mate
Really helpful

November 2nd, 2013 1:30am

It's a little complicated (at least my way is) but I managed to do it like so:

- Go to the C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\ folder, right click the machine.config file and choose Properties.

- Under the Security Tab, click the Advanced Button and from there click the Owner Tab.  

- Choose your user account under the "Change Owner To" section and click Apply.

- Go back to the Security Tab in the previous window and click the Edit button.

- Give yourself full control of the files.

- It may be a good idea to make copies of the machine.config and machine.config.default files if you haven't already.

- Rename the "machine.config" file to "machine.config1" or anything like that.  Then rename "machine.config.default" to just "machine.config"

After doing that, everything installed just fine for me... 


Thanx dude for providing this solution, now it's working :)
Free Windows Admin Tool Kit Click here and download it now
November 23rd, 2013 11:29am

i am still have this exact problem when trying to install office 2010. i have tried everything here, other than papriapr's idea of uninstalling various things (i didnt want to uninstall anything that might be important!) 

the only thing i can think that i might have done wrong is when i was poking around the in CONFIG folder i opened machine.config in notepad and its name changed from machine.config to just machine. this happened to a couple of other files i opened too, they lost their suffixes. i then renamed them back to machine.config, etc. 

after that i followed the above guide, renaming the machine.config and the machine.config.default files.

im really not very computer literate and so you can imagine this is getting really frustrating for me. have i messed it up in some way? is there anything else i can try?

thanks

December 7th, 2013 6:35pm

Works perfectly, thanks for sharing your solution!
Free Windows Admin Tool Kit Click here and download it now
November 29th, 2014 7:56pm

Gracias segui todos tus pasos y se volvio a instalar muy bien. Saludos desde Mexico.
January 6th, 2015 5:03pm

I had the same problem installing vs 2015 community, but on .net fw 4.0.xxx, this worked perfectly, tks!!!
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2015 8:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics